package org.dromara.bean.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.dromara.bean.domain.HisGoods;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.math.BigDecimal;

/**
 * 商品spu业务对象 his_goods
 *
 * @author Lion Li
 * @date 2024-12-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HisGoods.class, reverseConvertGenerate = false)
public class HisGoodsBo extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 商品名称
     */
    private String title;

    /**
     * 商品标签
     */
    private String labels;

    /**
     * 售价
     */
    private BigDecimal price;

    /**
     * 原价
     */
    private BigDecimal originalPrice;

    /**
     * 详情图
     */
    private String detailImage;

    /**
     * 展示图
     */
    private String photo;

    /**
     * 状态
     */
    private String listing;

    /**
     * 销量
     */
    private String virtuals;


    private String orderByColumn;

}
